-- GENERATED SPELL FOR [Dalaran Warder] --


function spell0_1913(pUnit, Event) --@Summon Dalaran Serpent,Self--
pUnit:FullCastSpellOnTarget(3615,pUnit)
pUnit:RegisterEvent('Sorts_1913', 30339, 1)
end

function Sorts_1913(pUnit, Event)
local choix_sorts_1913 = math.random(0, 0)
if choix_sorts_1913 == 0 then
pUnit:RegisterEvent('spell0_1913', 1, 1)
end
end

function mob1913_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1913', math.random(1500, 3000), 1)
end

function mob1913_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1913_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1913_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1913, 1, 'mob1913_Action')
RegisterUnitEvent(1913, 2, 'mob1913_Leave')
RegisterUnitEvent(1913, 3, 'mob1913_Kill')
RegisterUnitEvent(1913, 4, 'mob1913_Die')
